home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / dsp / dspgroup / mac320.arc / OPCHANGE.DOC < prev    next >
Encoding:
Text File  |  1986-03-04  |  1002 b   |  34 lines

  1. OPCHANGE.EXE allows you to modify certain of the assembler opcodes.
  2.  
  3. The calling sequence is:
  4.  
  5.     OPCHANGE file.exe str1=str2 str3=str4.....
  6.  
  7. where file.exe is the file to be modified, and
  8.  
  9. str1 is to be changed to str2
  10. str3 is to be changed to str4
  11.  
  12. The characters is the source and replacement strings must be
  13. alphanumeric, and the source and destination strings must be
  14. of the same length.
  15.  
  16. The modified file will be written to file.new, and you
  17. must rename this to an EXE file before you can test.
  18.  
  19. For example, to change file MACZ80 and:
  20.  
  21. replace SET pseudo operation with VEQ (arbitrary choice)
  22. replace STB opcode with SET
  23. replace DW with BK (backward storage, again arbitrary)
  24. replace WD with DW (normal Z80 mode)
  25.  
  26.     OPCHANGE MACZ80.EXE SET=VEQ STB=SET DW=BK WD=DW
  27.  
  28. The replacements are performed in the order given and you must
  29. be careful in your choice of the replacement sequence.
  30.  
  31. Use this program at your own risk, and keep a backup of the
  32. orginal .EXE file.
  33.  
  34.